package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.io.Serializable;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class User implements Serializable {

    //用户表
    @Excel(name="用户编号")
    private Integer userId;
    @Excel(name = "用户图像", type = 2 ,width = 8 , height = 13,imageType = 1)
    private String userImage;
    @Excel(name = "用户姓名")
    private String userName;
    @Excel(name = "用户昵称")
    private String userNickName;
    @Excel(name="用户性别",replace = {"男_1","女_0"})
    private String userSex;
    @Excel(name="所在省份")
    private String userProvince;
    @Excel(name = "所在城市")
    private String userCity;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间")
    private Date userCreateTime;
    //用户状态有四种情况  0解冻-正常用户 1冻结  2已删除 3未激活（前台）
    @Excel(name = "用户状态",replace = {"冻结_1","正常_0"})
    private Integer userStatus;
    @Excel(name = "用户联系电话")
    private String userTelphone;

    private String userPassword;
    private String userAutoGraph;
    private Guru guru;

}
